package com.tentative.competition.common.model.schedule.resp;

import com.tentative.competition.common.enums.BannerStatusEnum;
import com.tentative.competition.common.enums.BannerTypeEnum;
import com.tentative.competition.common.enums.ScheduleStatusEnum;
import com.tentative.competition.common.model.schedule.vo.FileVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @auther: Smile Huang
 * @date: 2023/6/24 21:25
 * @desc:
 * @version: 2.0
 */
@Data
public class BannerInfoResp {

    private Long id;

    @ApiModelProperty("轮播类型")
    private BannerTypeEnum bannerType;

    @ApiModelProperty("附件ID，逗号隔开")
    private String bannerImg;

    @ApiModelProperty("赛程ID")
    private Long scheduleId;

    @ApiModelProperty("轮播链接")
    private String bannerUrl;

    private List<FileVo> bannerUrlVo;

    @ApiModelProperty("轮播状态（启用，禁用）")
    private BannerStatusEnum bannerStatus;

    private Date createTime;

    private Boolean status;

    public Boolean getStatus() {
        return this.bannerStatus != null && this.bannerStatus.equals(BannerStatusEnum.ENABLE) ? true : false;
    }
}
